package com.lin.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by x1 on 2016/5/30.
 */
public class GameDB extends SQLiteOpenHelper {
   public GameDB(Context context){
       super(context,"Gobang",null,1);

   }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL("create table Users(username text primary key not null default \"\",password texts not null default \"\",rank,score)" );

    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }

}
